package com.location.footprint.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class DataProvider {
    public final static String ITEM_TYPE = "item_type";

    //朋友圈
    public static List<FootPrintBean> getAdList() {
        ArrayList<FootPrintBean> arr = new ArrayList<>();
        FootPrintBean bean = new FootPrintBean(new Random().nextInt(2) + 1);
        bean.setNickName("月下独酌");
        bean.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean.setPhotoPath("https://ftp.bmp.ovh/imgs/2019/11/b719e987262661d9.jpg");
        bean.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean.setContent("一段美丽的风景...");
        bean.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean1 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean1.setNickName("joinli");
        bean1.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean1.setPhotoPath("https://ftp.bmp.ovh/imgs/2019/11/88f865e6da8052c9.jpg");
        bean1.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean1.setContent("我来这里看一看风景...");
        bean1.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean2 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean2.setNickName("joinli");
        bean2.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean2.setPhotoPath("https://s2.ax1x.com/2019/09/10/nUMoIs.md.jpg");
        bean2.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean2.setContent("我来这里看一看风景...");
        bean2.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean3 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean3.setNickName("joinli");
        bean3.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean3.setPhotoPath("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549146361939&di=c140111776d481e41d3ebbd3bddab80e&imgtype=0&src=http%3A%2F%2Fstatic.hdw.eweb4.com%2Fmedia%2Fwallpapers_dl%2F1%2F16%2F157861-android.jpg");
        bean3.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean3.setContent("我来这里看一看风景...");
        bean3.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean4 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean4.setNickName("joinli");
        bean4.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean4.setPhotoPath("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1542545254170&di=81fe94bee505c277466a2b284f3a6873&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2F241f95cad1c8a7862487bd376c09c93d70cf505e.jpg");
        bean4.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean4.setContent("我来这里看一看风景...");
        bean4.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean5 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean5.setNickName("joinli");
        bean5.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean5.setPhotoPath("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1541345611294&di=1efa153dc4f8b121a1e80e4208b8d4e8&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20170801%2Fd730dd2b666a425f84945c745fa22d6c_th.jpg");
        bean5.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean5.setContent("我来这里看一看风景...");
        bean5.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean6 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean6.setNickName("joinli");
        bean6.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean6.setPhotoPath("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1557391183181&di=b51c41b4a26d2c00eb30c92e2fb2b8af&imgtype=0&src=http%3A%2F%2Fimage.geihui.com%2Fuploadfiles%2Fattached%2F20140430111041_78447.jpg");
        bean6.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean6.setContent("我来这里看一看风景...");
        bean6.setPublishTime("2019-11-5 17:25");

        FootPrintBean bean7 = new FootPrintBean(new Random().nextInt(2) + 1);
        bean7.setNickName("joinli");
        bean7.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + new Random().nextInt(10));
        bean7.setPhotoPath("http://5b0988e595225.cdn.sohucs.com/q_70,c_lfill,w_300,h_200,g_faces/images/20191114/caf551b79e9a4254a265cdf112cab50e.jpeg");
        bean7.setAddress("北京市 · 北京 海淀区北坞村路 | 海拔 -94M");
        bean7.setContent("我来这里看一看风景...");
        bean7.setPublishTime("2019-11-5 17:25");
        arr.add(bean);
        arr.add(bean1);
        arr.add(bean2);
        arr.add(bean3);
        arr.add(bean4);
        arr.add(bean5);
        arr.add(bean6);
        arr.add(bean7);

        arr.add(bean);
        arr.add(bean1);
        arr.add(bean2);
        arr.add(bean3);
        arr.add(bean4);
        arr.add(bean5);
        arr.add(bean6);
        arr.add(bean7);

        arr.add(bean);
        arr.add(bean1);
        arr.add(bean2);
        arr.add(bean3);
        arr.add(bean4);
        arr.add(bean5);
        arr.add(bean6);
        arr.add(bean7);

        arr.add(bean);
        arr.add(bean1);
        arr.add(bean2);
        arr.add(bean3);
        arr.add(bean4);
        arr.add(bean5);
        arr.add(bean6);
        arr.add(bean7);
        return arr;
    }

    //动态评论
    public static List<CommentsBean> getCommentsList(int type) {
        ArrayList<CommentsBean> arr = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            CommentsBean bean = new CommentsBean(type);
            bean.setNickName("天地一沙鸥" + i);
            bean.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + i);
            bean.setContent(i + "写的真不错，评论一下...");
            int index = new Random().nextInt(6) + 1;
            bean.setCommentsCount(index);
            bean.setChildBeanList(getCommentsChildList(index));
            arr.add(bean);
        }

        return arr;
    }

    //子评论
    public static List<CommentsChildBean> getCommentsChildList(int count) {
        ArrayList<CommentsChildBean> arr = new ArrayList<>();
//        CommentsChildBean bean = new CommentsChildBean();
//        bean.setNickName("sdj大街");
//        bean.setComments("我累个去，擦");
//
//        CommentsChildBean bean1 = new CommentsChildBean();
//        bean1.setNickName("joinli");
//        bean1.setComments("写的真不错，过来踩踩，评论一下，真是一条不错的说说，赶紧来吧...");
//
//        CommentsChildBean bean2 = new CommentsChildBean();
//        bean2.setNickName("sdj大街");
//        bean2.setComments("我累个去，擦");
//
//        CommentsChildBean bean3 = new CommentsChildBean();
//        bean3.setNickName("sdj大街");
//        bean3.setComments("我累个去，擦");
//
//        CommentsChildBean bean4 = new CommentsChildBean();
//        bean4.setNickName("sdj大街");
//        bean4.setComments("我累个去，擦");
//
//        CommentsChildBean bean5 = new CommentsChildBean();
//        bean5.setNickName("sdj大街");
//        bean5.setComments("我累个去，擦");
//
//        CommentsChildBean bean6 = new CommentsChildBean();
//        bean6.setNickName("sdj大街");
//        bean6.setComments("我累个去，擦");

        for (int j = 0; j < count; j++) {
            CommentsChildBean bean = new CommentsChildBean();
            bean.setNickName("sdj大街" + j);
            bean.setComments("我累个去，擦" + j);
            bean.setAvatarPath("http://q1.qlogo.cn/g?b=qq&s=640&nk=98648379" + j);
            arr.add(bean);
        }


        return arr;
    }
}